package com.ll.mapdemo;



import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

/**
 * @author 刘龙
 * @version 1.0
 */
public class HashtableDemo {
    public static void main(String[] args) {
        Hashtable hashtable = new Hashtable();
        hashtable.put("java", 100);
        hashtable.put("java", 200);

        // 1.底层有数组 Hashtable$Entry[] 初始化为 11
        // 2.threshold 8 = 11 * 0.75


        System.out.println(hashtable);
    }
}

class ll {

    static {
        System.out.println("hhh");
    }

    static class AA {
        static {
            System.out.println("hhh2");
        }
    }
}

